---
layout: "default"
title: "unsafeAddressOf"
description: "Swift documentation for 'unsafeAddressOf': Returns an UnsafePointer to the storage used for object.  There&#39;s
not much you can do with this other than use it to identify the
object."
keywords: "unsafeAddressOf,func,swift,documentation"
root: "/v2.1"
---

<div class="declaration" id="func-unsafeaddressof_-anyobject">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-unsafeaddressof_-anyobject">func unsafeAddressOf(<wbr>_: AnyObject)</a>
        
<div class="comment collapse" id="comment-func-unsafeaddressof_-anyobject"><div class="p">
    <p>Returns an <code>UnsafePointer</code> to the storage used for <code>object</code>.  There&#39;s
not much you can do with this other than use it to identify the
object.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func unsafeAddressOf(object: AnyObject) -&gt; UnsafePointer&lt;Void&gt;</code>
    
    
</div></div>
</div>
